<?php
namespace common\models;

use yii\db\ActiveRecord;

class Attachment extends ActiveRecord
{

    /**
     * Attachment类关联数据库表名称 
     */
    public static function tableName()
    {
        return '{{%attachment}}';
    }

    /**
     * 属性标签
     */
    public function attributeLabels()
    {
        return [
            'aid' => '附件id',
            'module' => '模块',
            'catid'=>'栏目id',
            'filename' => '启用',
            'filepath' => '文件路径',
            'filesize' => '文件大小',
            'fileext' => '文件后缀',
            'isimage' => '是否为图片',
            'isthumb' => '是否为索引',
            'downloads' => '下载',
            'userid' => '用户id',
            'uploadtime' => '上传时间',
            'uploadip' => '上传ip',
            'status' => '状态',
            'authcode' => '密钥',
            'siteid' => '站点id',
        ];
    }

    
}





?>